home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM BV3 / BMUG PD-ROM Version BV3 (CDRM1097900).iso / HyperCard / Games / The Golden Parrot / card_11653.txt < prev    next >
Text File  |  1990-08-20  |  2KB  |  64 lines

  1. -- card: 11653 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3426
  5. -- name: Lion
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global score
  9.   subtract 5 from score
  10.   if score <= 0 then
  11.     visual effect scroll up
  12.     go card "end"
  13.   end if
  14.   put score into field "scorebox"
  15. end openCard
  16. on mouseUp
  17.  
  18.   get field "textarea" of card "Mountain Trail"
  19.   put it&return&"The hungry lion" into field "textarea" of card "Mountain Trail"
  20.  
  21.   get field "textarea" of card "Mountain Trail"
  22.   put it&return&"Shoot the lion" into field "textarea" of card "Mountain Trail"
  23.  
  24.   get field "textarea" of card "River Trail"
  25.   put it into holder
  26.   put the number of lines in field "textarea" of card "River Trail" into counter
  27.   repeat until counter = 0
  28.     get line counter of holder
  29.     if it contains "Monkeys" then
  30.       delete line counter of field "textarea" of card "River Trail"
  31.       put 1 into counter
  32.     end if
  33.     subtract 1 from counter
  34.   end repeat
  35.  
  36.   get field "textarea" of card "River Trail"
  37.   put it into holder
  38.   put the number of lines in field "textarea" of card "River Trail" into counter
  39.   repeat until counter = 0
  40.     get line counter of holder
  41.     if it contains "Water snakes" then
  42.       delete line counter of field "textarea" of card "River Trail"
  43.       put 1 into counter
  44.     end if
  45.     subtract 1 from counter
  46.   end repeat
  47.  
  48.   visual effect dissolve
  49.   go to card "River Trail"
  50.  
  51. end mouseUp
  52.  
  53.  
  54. -- part contents for background part 1
  55. ----- text -----
  56. Lion
  57.  
  58. -- part contents for background part 2
  59. ----- text -----
  60. At a bend in the trail you come face to face with a lion. A hungry lion. Quickly you toss your piece of dried liver at him and climb a nearby tree. He goes for the liver, wrinkles his nose in disgust and saunters off into the woods. Two hours later you decide it's safe to leave the tree.
  61.  
  62. -- part contents for background part 5
  63. ----- text -----
  64. 60